CC=g++
target=huiwen ##生成的目标文件
srcpp=huiwen.cpp Stack.cpp##要编译的.cpp文件
obj=$(srcpp:.cpp=.o)

all:$(target)

$(target):$(obj)
	$(CC) $(obj) -o $(target)

.cpp.o:
	$(CC) -c $< -o $@

.PHONY:clean
clean:
	del *.o